package com.xysoft.admin.service;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Component;

import com.xysoft.model.User;

@Component
public interface IHomeService extends IBaseService{
	/**
	 * 后台登录验证.
	 */
	public String login(User user, HttpServletRequest request, HttpSession session);
	
	/**
	 * 获取菜单.
	 */
	public String menu(HttpServletRequest request, HttpSession session);
	
	/**
	 * 获取用户信息.
	 */
	public Map<String, Object> userinfo(HttpServletRequest request, HttpSession session);
	
	/**
	 * 用户退出.
	 */
	public Map<String, Object> logout(HttpSession session);
}
